FROM java:8
#创建项目日志存放的文件夹
#RUN mkdir -p /app
# 匿名挂载目录
VOLUME /tmp
# 项目暴露的端口号
EXPOSE 10000
# 将jar包添加到容器中 /app/目录并更名为xxx.jar
ADD dockerdemo-0.0.1-SNAPSHOT.jar dockerdemo.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","dockerdemo.jar"]